App<IAppOption>({
  globalData: {
    statusBarHeight: 0,
    menuButtonHeight: 0
  },
  onLaunch() {
    var that = this
    wx.getSystemInfo({
      success: function (res) {
        that.globalData.statusBarHeight = res.statusBarHeight
      },
    })
    this.globalData.menuButtonHeight = wx.getMenuButtonBoundingClientRect().height;
  }
})